﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TransFormer.Web.admin
{
    public partial class UserInfoAdd : AdminPage
    {
        private BLL.UserInfo _bll = new BLL.UserInfo();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            Model.UserInfo user = new Model.UserInfo();
            user.UserName = txtUserName.Text;
            user.UserDesc = txtDesc.Text;
            user.Pwd = txtPwd.Text;
            user.RegTime = DateTime.Now;
            _bll.Add(user);
            Response.Redirect("main.aspx");
        }

        protected void btnCancel_Click(object sender, EventArgs e)
        {
            Response.Redirect("main.aspx");
        }
    }
}